package com.tianyi.sfzy1.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 课程问题表
 * @TableName coursequestion
 */
@Data
public class Coursequestion implements Serializable {
    /**
     * 问题编号
     */
    private Integer questionId;

    /**
     * 问题题目
     */
    private String title;

    /**
     * 咨询师编号 -- 应该引用Consultant(consultant_id)
     */
    private Integer consultantId;

    private Consultant consultant;
    private Course course;
//    private List<Coursequestion> coursequestionList=new ArrayList<>();
//  /*  private List<Course> courseList;
//
//    private List<Consultant> consultantList;*/

    /**
     * 问题内容
     */

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date publishTime;

    /**
     * 课程编号 -- 应该引用Course(course_id)
     */
    private Integer courseId;

    private static final long serialVersionUID = 1L;
}